package com.itheima.demo1;

public class QuGeWeiShu {
    public static void main(String[] args) {
        int i = 12345;
        int ge = i % 10;
        int shi = i / 10 % 10;
        int bai = i / 100 % 10;
        int qian = i / 1000 % 10;
        int wan = i / 10000;

        System.out.println("个位=" + ge);
        System.out.println("十位=" + shi);
        System.out.println("百位=" + bai);
        System.out.println("千位=" + qian);
        System.out.println("万位=" + wan);
    }
}
